Fix a minor leak in the KML geocache writer that I just introduced.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 6 Oct 2014 05:31:27 +0000 (05:31 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 6 Oct 2014 05:31:27 +0000 (05:31 +0000)
gpsbabel/kml.cc

index 5a5a47b852127ec6df912c769a05f5952f682026..f084a066ac206b193084065b294c5d3f0d645961 100644 (file)
@@ -1398,7 +1398,7 @@ QString kml_geocache_get_logs(const Waypoint* wpt)
       if (html_encrypt && encoded) {
         s = rot13(logpart->cdata);
       } else {
-        s = xstrdup(logpart->cdata);
+        s = logpart->cdata;
       }
 
       r = r + "<br />";